﻿package Message.Game
{
    import Framework.MQ.*;
    import Framework.Serialize.*;

    public class SSeqPet extends IMessageBase
    {
        public var fightMode:int;
        public var lastFightUid:String;
        public var pets:Array;
        public const _type:int = 15092;
        public static var _regist:SSeqPet = new SSeqPet(true);

        public function SSeqPet(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            return;
        }// end function

        override public function getType() : int
        {
            return this._type;
        }// end function

        override public function clone() : IMessageBase
        {
            return new SSeqPet();
        }// end function

        override public function __write(param1:SerializeStream) : void
        {
            param1.writeInt(this.fightMode);
            param1.writeString(this.lastFightUid);
            SeqPetHelper.write(param1, this.pets);
            return;
        }// end function

        override public function __read(param1:SerializeStream) : void
        {
            this.fightMode = param1.readInt();
            this.lastFightUid = param1.readString();
            this.pets = SeqPetHelper.read(param1);
            return;
        }// end function

    }
}
